<% present entry do |entry_presenter| %>
  <%= content.html_safe %>

  <% entry.media.each do |media| %>
    <% if media.type =~ /image/i %>
      <p>
        <%= link_to media.url do %>
          <%= image_tag media.url %>
        <% end %>        
      </p>
    <% elsif media.type =~ /video/i %>
      <p>
        <%= video_tag media.url, preload: "none"  %>
      </p>
    <% end %>
  <% end %>

  <% if entry.respond_to?(:urls) %>
    <% entry.urls.each do |url| %>
      <%= render partial: "shared/link_embed_api", locals: {url: url, entry: entry} %>
    <% end %>
  <% end %>
<% end %>